package com.itheima.service;

import com.itheima.dao.StudentDao;
import com.itheima.domain.Student;
import com.itheima.po.StudentScorePo;
import com.itheima.vo.StudentNameScoreVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author itheima
 */
@Service("studentService")
public class StudentServiceImpl implements StudentService {

    @Autowired
    private StudentDao studentDao;

    public List<Student> getAll() {
        return studentDao.getAll();
    }

    public List<StudentNameScoreVo> getEnglish() {
        return studentDao.getEnglish();
    }

    public String getByTotal() {
        return studentDao.getByTotal();
    }

    public List<Student> getByCondition(String name) {
        return studentDao.getByCondition(name);
    }

    public List<String> getByScore(Integer score) {
        return studentDao.getByScore(score);
    }

    public List<String> getByRange(StudentScorePo po) {
        return studentDao.getByRange(po);
    }
}
